package com.hanxiaozhang.validation.annotation;



import com.hanxiaozhang.validation.validator.PriceNotEmptyValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;


/**
 * 功能描述: <br>
 * 〈订单数量不为空时，价格不为零校验注解〉
 *
 *  todo 不能校验
 *
 * @Author:hanxinghua
 * @Date: 2020/7/22
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = PriceNotEmptyValidator.class)
public @interface PriceNotEmpty {


    String message() default "价格不能为空!";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
